﻿using Leadtools;
using Leadtools.Codecs;
using Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ViewModel
{
    public static class ImageHelper
    {
        public static RasterImage GetRasterImage(string filename)
        {
            try
            {
                return new RasterCodecs().Load(filename);
            }
            catch (Exception e)
            {
                Logger.Info(e.Message);
            }

            return null;
        }


    }
}
